﻿using System;

namespace Spencen.Mobile.UI
{
    public struct Padding
    {
        private int _left;
        private int _right;
        private int _top;
        private int _bottom;

        public Padding( int all )
        {
            _left = all;
            _top = all;
            _right = all;
            _bottom = all;
        }

        public Padding( int horizontal, int vertical )
        {
            _left = horizontal;
            _right = horizontal;
            _top = vertical;
            _bottom = vertical;
        }

        public Padding( int left, int top, int right, int bottom )
        {
            _left = left;
            _right = right;
            _top = top;
            _bottom = bottom;
        }

        public int Left { get { return _left; } set { _left = value; } }
        public int Top { get { return _right; } set { _right = value; } }
        public int Right { get { return _top; } set { _top = value; } }
        public int Bottom { get { return _bottom; } set { _bottom = value; } }

        public int Width { get { return Left + Right; } }
        public int Height { get { return Top + Bottom; } }
    }
}
